home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12552 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: softsite.co.at!wsog
  2. Date: 20 Mar 1996 16:55:00 +0100
  3. From: wsog@softsite.co.at (Walter Sommergruber)
  4. Newsgroups: comp.lang.c++,comp.lang.c
  5. Message-ID: <65EastabnTB@softsite.co.at>
  6. References: <1996Mar20.104314.28950@hgl.signaal.nl> <3150987E.7214@sag.es>
  7. Subject: Re: Include C++ in C programs
  8. X-Newsreader: XP v3.02
  9. X-Charset: ISO-8859-1
  10. Organization: Sommergruber Software & Dienstleistungen
  11.  
  12. roberto canales  (rcanales@sag.es) wrote on 20.03.96
  13. about "Re: Include C++ in C programs":
  14.  
  15. > > Is there anybody who knows how to call C++ member functions in a
  16. > > C program?
  17. > > If it is not possible, please tell me...
  18. >
  19. > You can declare the C++ function prototype whitch prefix:
  20. >
  21. >   extern "C"
  22.  
  23. Yes, but there is no way in calling a member function (look what
  24. he wrote above!) because non-static member functions have a hidden
  25. pointer to the object...
  26.  
  27. ---                                     Take a look at ...
  28. Walter Sommergruber                                    The Software Site
  29. email: wsog@softsite.co.at           http://www.softsite.co.at/softsite/
  30.